package cn.antsing.bean;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.stereotype.Component;

@Component
public class User {
    @Autowired
    private ApplicationContext applicationContext;
    public void printApplicationContext(){
        System.out.println("-----user----:\t"+applicationContext.getClass().getName()+"\t"+applicationContext.toString());
    }
}
